package com.freewater.javabase.demo.init.loadandinit;

public class SingletonDemo {

    private static final BigObject instance = new BigObject();

    public static BigObject getInstance() {
        return instance;
    }
}

class BigObject {

    private final int number;

    public BigObject() {
        this.number = 42;
        System.out.println("BigObject initiated");
    }

    public int getNumber() {
        return number;
    }
}
